#FROM gitlab.jnhgsz.com/openjdk/openjdk:8-jdk
FROM hub-docker.jnhgsz.com:8000/library/eclipse-temurin:8u412-b08-fonts

MAINTAINER jinanhuigu

ENV SERVER_PORT=8080
EXPOSE ${SERVER_PORT}

ADD ./target/labor.jar ./app.jar

ENTRYPOINT ["java", \
            "-Djava.security.egd=file:/dev/./urandom", \
            "-Dserver.port=${SERVER_PORT}", \
            "-jar", "app.jar"]
